package com.zhu.tool_test.jvm.code01;

import com.zhu.tool_test.aop.aspect.ResultAspect;

/**
 * @program: tool_test
 * @description:
 * @author: ggBall
 * @create: 2021-04-04 15:47
 **/
public class ClassCloader extends ClassLoader {

    public static void main(String[] args) throws ClassNotFoundException {
        Class<? extends Class> aClass = ClassCloader.class.getClass();
        ClassCloader classCloader = new ClassCloader();

    }

    /**
     * Creates a new class loader using the <tt>ClassLoader</tt> returned by
     * the method {@link #getSystemClassLoader()
     * <tt>getSystemClassLoader()</tt>} as the parent class loader.
     *
     * <p> If there is a security manager, its {@link
     * SecurityManager#checkCreateClassLoader()
     * <tt>checkCreateClassLoader</tt>} method is invoked.  This may result in
     * a security exception.  </p>
     *
     * @throws SecurityException If a security manager exists and its
     *                           <tt>checkCreateClassLoader</tt> method doesn't allow creation
     *                           of a new class loader.
     */
    public ClassCloader() {
        ClassLoader systemClassLoader = getSystemClassLoader();
        System.out.println("systemClassLoader = " + systemClassLoader);
    }
}
